package com.study.graph.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.study.graph.model.annotation.FieldMapping;
import com.study.graph.model.annotation.FieldType;
import com.study.graph.model.annotation.VertexMapping;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@VertexMapping("team")
public class TeamVertex extends BaseVertex implements Serializable {

    @FieldMapping(value = "name", type = FieldType.String)
    @JSONField(name="team.name")
    private String name;
}
